package com.example.voicebox.vm;

import com.example.voicebox.tools.VoicePlayer;

/**
 * 代表fragment_voice_list.xml布局的ViewModel
 * */
public class VoiceListVM {
    private VoicePlayer mVoicePlayer;

    public VoiceListVM(VoicePlayer voicePlayer){
        mVoicePlayer = voicePlayer;
    }

    public void onBGMButtonClick(){
        mVoicePlayer.playerBGM();
    }

}
